Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add null check to wolfSSL_Free #7394

Merged
merged 1 commit into from
May 16, 2024
Merged

Conversation

embhorn
Copy link
Member

@embhorn embhorn commented Apr 3, 2024

Description

If wolfSSL_Free() determines that the ‘heap’ argument is not NULL, it goes on to the ‘else’ statement of memory.c, where it executes the following: 'wc_LockMutex(&(mem->memory_mutex)’ without checking whether ‘mem’ (AKA hint->memory) is NULL.

Fixes zd17779

Testing

Customer confirmed

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@embhorn embhorn self-assigned this Apr 3, 2024
@embhorn
Copy link
Member Author

embhorn commented Apr 3, 2024

Retest this please

dgarske
dgarske previously approved these changes May 15, 2024
@dgarske dgarske removed the request for review from billphipps May 15, 2024 17:17
@dgarske dgarske assigned wolfSSL-Bot and unassigned billphipps May 15, 2024
@dgarske
Copy link
Contributor

dgarske commented May 15, 2024

@embhorn please resolve new conflicts. @JacobBarthelmeh please merge when you are happy with PR.

@embhorn
Copy link
Member Author

embhorn commented May 15, 2024

retest this please

@JacobBarthelmeh JacobBarthelmeh merged commit 2120424 into wolfSSL:master May 16, 2024
99 checks passed
jefferyq2 pushed a commit to jefferyq2/wolfssl that referenced this pull request Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants